<template>
    <simple-layout title="待释放">
      <div style="background: rgb(251, 249, 249);">
        <div class="pay" @click="toUrl('repurchase')">
          <div class="pay-center">
            <i class="mui-icon mui-icon-compose"></i>
            <span>A换购待释放</span>
          </div>
          <i class="mui-icon mui-icon-arrowright"></i>
        </div>

        <div class="pay"  @click="toUrl('hac')">
          <div class="pay-center">
            <i class="mui-icon mui-icon-spinner mui-spin"></i>
            <span>购物积分、HAC换购待释放</span>
          </div>
          <i class="mui-icon mui-icon-arrowright"></i>
        </div>

        <div class="pay"  @click="toUrl('cash')">
          <div class="pay-center" >
            <i class="mui-icon mui-icon-paperplane"></i>
            <span>现金认购待释放</span>
          </div>
           <i class="mui-icon mui-icon-arrowright"></i>
        </div>


      </div>

    </simple-layout>
  </template>


  <script>
    import AuthService from '../../service/auth';
    import SimpleLayout from '../../components/SimpleLayout';
     import lockservice from '../../service/lock';
    export default {
      name: "lockCabin",
      components: {
        //someComponent
        SimpleLayout
      },
      props: {},
      data() {
        return {
          msg: "Hello Vue.js",
          phone: '',
          code: '',
          password: '',
          numCode: '发送验证码',
   transferfilter:{
          pageSize:10,
          pageNum:1
        },
          img: '../../assets/productinfo/fengxian.png'
        }
      },
      computed: {},
      watch: {},
      mounted: function () {
         this.getProductList()
        this.getlist()
      },
      methods: {
        toUrl(val){
          this.$router.push({ name:val });
        },
        getProductList(){

          lockservice.releaseList({type: 4}).then(res=>{
              console.log(res)

            if(res.status == 200){
              // this.handleNumber(res.resultData.list)
            }
          })

        },
        getlist() {
          lockservice.lockedList(transferfilter).then(res=>{
            console.log(22)
              console.log(res)

            if(res.status == 200){
              // this.handleNumber(res.resultData.list)
            }
          })
        }
      }
    }
  </script>

 <style scoped>
    .pay{
      display: flex;
      border-top: 1px solid #f7f3f3;
      padding: 1rem;
      background-color: #fff;
    }
    .pay-center{
      font-size: 18;
      font-weight: bold;
      text-align: initial;
      width: 100%;
      height: 30px;
      display: inline-flex;
    }
    .pay-center>span{
      margin: auto 0;
    }
    .pay-center-l{
      display: inline-block;
      height: 30px;
      width: 30px;
      margin-right: 10px;
      background: url("../../assets/productinfo/yinhang.png") no-repeat;
      background-size: 100%;
    }

    .pay-center-grey{
      display: inline-block;
      height: 30px;
      width: 30px;
      background: url("../../assets/productinfo/yinhang.png") no-repeat;
      background-size: 100%;

    }
    .pay:nth-child(3n+1){
      margin-top: 1rem;
      border-top: none;
    }
  </style>
